<?php
namespace App\Exceptions;

use App\Common\Output\JsonOutput;
use Exception;
use Throwable;

/**
 * Class BusinessException 业务异常类
 * @package App\Exceptions
 */
class BusinessException extends Exception
{
    public function __construct(int $code = 0, string $message = "", Throwable $previous = null)
    {
        JsonOutput::error($code, $message);
    }
}